//
//  NoContentTableViewCell.m
//  Credit
//
//  Created by WangZhenyu on 16/5/18.
//  Copyright © 2016年 WangZhenyu. All rights reserved.
//

#import "NoContentTableViewCell.h"

@implementation NoContentTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setImageType:(InfoImageType)type title:(NSString *)title{
    NoContentView *view = [[NoContentView alloc] initItemFrame:self.frame imageType:type title:title];
    [self addSubview:view];
}

- (void)setImageType:(InfoImageType)type title:(NSString *)title btnTitle:(NSString *)btnTitle btnAction:(void (^)())handle{
    NoContentView *view = [[NoContentView alloc] initItemFrame:self.frame imageType:type title:title btnTitle:btnTitle btnAction:handle];
    [self addSubview:view];
}

@end
